const express = require('express');
const router = express.Router();
const groups_router=require('../router_handle/groups.js')
//获取用户加入的群聊列表接口
router.get('/getUserGroups', groups_router.getUserGroups);
//获取群聊帖子列表接口
router.get('/getGroupPosts', groups_router.getGroupPosts);
//发送群聊帖子接口
router.post('/sendGroupPost', groups_router.sendGroupPost);
//撤回群聊帖子接口
router.post('/groupChatWithdraw', groups_router.groupChatWithdraw);
//创建学习群聊接口
router.post('/createStudyGroup', groups_router.createStudyGroup);
//邀请用户加入群聊接口
router.post('/inviteUserToGroup', groups_router.inviteUserToGroup);
//获取群聊成员列表接口
router.get('/getGroupMembers', groups_router.getGroupMembers);
//退出群聊接口
router.post('/quitGroup', groups_router.quitGroup);
module.exports = router;